﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [Table("AA002")]
    public class EntityUserInFo : EntityBase
    {
        [StringLength(50)]
        [Column("A02")]
        [Required]
        /// <summary>
        /// 姓氏
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 姓
        /// </summary>
        [Required]
        public string? ListName { get; set; }

        [Column("A03")]
        [Required]
        /// <summary>
        /// 年龄
        /// </summary>
        public int UserAge { get; set; }

        [Column("A04")]
        [Required]
        /// <summary>
        /// 性别
        /// </summary>
        public bool UserGender { get; set; }


        public string? Email { get; set; }

        [Column("A05")]
        /// <summary>
        /// 身高
        /// </summary>
        public double UserHeight { get; set; }

        [Column("A06")]
        /// <summary>
        /// 体重
        /// </summary>
        public double UserWeight { get; set; }

        [Column("A07")]
        /// <summary>
        /// 地址
        /// </summary>
        public string? UserAddress { get; set; }

        [Column("A08")]
        /// <summary>
        /// 电话号码
        /// </summary>
        public string? UserPhone { get; set; }

        //[ForeignKey("P001")]
        //public List<EntityEntryForm>? EntityEntryForms { get; set; }
    }
}
